<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-header">
        <div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
        <div class="title">我的结算</div>
    </div>
    <div class="fui-content navbar">
        
        <div class="fui-tab fui-tab-warning" id="tab">
			<a ng-repeat="(k,v) in pagedata.statuss" ng-class="{'active':pagedata.params.status==k}" ng-click="access_json('///status='+k)" >{{v}}</a>
			
        </div>
        <div class="fui-list-group" id="container">
			<div ng-repeat="item in pagedata.list" class="fui-list" style="height: 3.5rem">
				
				<div class="fui-list-inner">
					<div class="row">
						  <div class="row-text" >
						 
						  结算单号：{{item.balancesn}}
						  </div>
					</div>
					<div class="subtitle">
						结算金额:{{price(item.fee)}}
					</div>
					<div class="subtitle">
						结算时间:{{date(item.createtime)}}
					</div>
				</div>
				<div class="row-remark">
					<p >{{pagedata.statuss[item.status]}}</p>
				</div>
			</div>
		</div>
        <div class='infinite-loading' ng-show="pagedata.loading" ><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-show="pagedata.list.length==0" class='content-empty'>
			<!--<i class='icon icon-group'></i><br/>暂时没有任何数据-->
			<img src="{SITEROOT}addons/ewei_shopv2/static/images/nomeb.png" style="width: 6rem;margin-bottom: .5rem;"><br/><p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>

</div>
<script>
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.loaded || scope.pagedata.loading){
		return;
	}
	scope.pagedata.loading=true;
	scope.pagedata.params.page++;
	var url='///page='+scope.pagedata.params.page;
	if(scope.pagedata.params.status){
		url+='&status='+scope.pagedata.params.status;
	}
	scope.get_data(function(res){
		if(res.list.length>0){
			res.list.forEach(function(item){
				scope.pagedata.list.push(item);
			});
		}
		if(res.list.length<20){
			scope.pagedata.loaded=true;
		}
		scope.pagedata.loading=false;
		scope.$evalAsync();
	},'',url);
}
</script>